//
//  LineWidthCell.m
//  MyPaintBoard
//
//  Created by 黄珂耀 on 15/8/6.
//  Copyright (c) 2015年 黄珂耀. All rights reserved.
//

#import "LineWidthCell.h"

@implementation LineWidthCell
{
    UILabel *_lineWidthNameLabel;
}

- (instancetype)initWithFrame:(CGRect)frame
{
    if (self = [super initWithFrame:frame])
    {
        [self _createLabel];
    }
    return self;
}

- (void)_createLabel
{
    _lineWidthNameLabel = [[UILabel alloc] initWithFrame:CGRectMake(10, 20, 40, 20)];
    
    [self addSubview:_lineWidthNameLabel];
}

- (void)setLineWidthName:(NSString *)lineWidthName
{
    _lineWidthName = lineWidthName;

    _lineWidthNameLabel.text = _lineWidthName;
    
    _lineWidthNameLabel.font = [UIFont systemFontOfSize:16];
    
    _lineWidthNameLabel.textColor = [UIColor blackColor];
}

- (void)setLineWidth:(CGFloat)lineWidth
{
    _lineWidth = lineWidth;
}

@end
